package com.mz.ozy.constants;

import com.mz.ozy.BuildConfig;
import com.tencent.mm.opensdk.openapi.IWXAPI;

public class Constants {
    public static final int OB_TYPE = 1;  //欧花类型

    public static final String APP_NOT_INIT = "10000001";
    public static final String APP_SERVER_EX = "服务异常";
    public static final String PageSize = "20";
    public static final String AESKEY = "C9C7D2AE49E7906D";
    public static String tokenId = "";
    public static int accountType;  //账号类型  0-普通用户 1-非门店教练  2-门店教练
    public static boolean isLogin = false;
    public static boolean isPayPwd;  //是否设置了支付密码  1-未设置 0-已设置
    public static boolean isVip;    //是否是年卡会员
    public static String uid;    //用户id

    /**
     * 3.创建全局的appId
     */
    public static final String APP_ID = "wx4a31dea55c39e742"; //替换为申请到的app id

    public static IWXAPI sWxApi; //全局的微信api对象

    //17602151654

    /**
     * API接口
     * 测试环境：testapi.ouzhuoya.com
     * 正式环境：ozyapi.ouzhuoya.com
     *
     * 分享
     * 测试环境：testreg.ouzhuoya.com
     * 正式环境：ozyreg.ouzhuoya.com
     *
     * 商城管理后台
     * 测试环境：testadmin.ouzhuoya.com
     * 正式环境：ozyadmin.ouzhuoya.com
     */
    public static class Http {
//                public static final String beta_host = "https://napi.ozylives.com";//线上测试
//                public static final String beta_host = "http://test.ozylives.com";
        public static final String beta_host = "https://testapi.ouzhuoya.com";//测试   /*http://192.168.0.117:9002*/
        public static final String product_host = "https://ozyapi.ouzhuoya.com";//正式
        public static final String host = BuildConfig.isBeta ? beta_host : product_host;
        public static final String baseUrl = "/abc/ozy";
        public static final String captcha_URL = "/abc/ozy/code.do";//图形验证码
        //        public static final String game_URL = "http://159.138.22.133/?isapp=1&code=";//游戏地址
//        public static final String game_URL = "file:////android_asset/www/index.html/?isapp=1&code=";//游戏地址
        public static final String game_URL = "file:///android_asset/www/index.html?isapp=1&code=";//游戏地址
        public static final String pic_host_address = "http://cdn.szfysoft.com/";//七牛云地址
        public static final String kuaidi_URL = "https://poll.kuaidi100.com/poll/maptrack.do";//快递100
    }

    /******************* 各种 key *******************/
    public static class KEY {
        public static final String BUGLY_ID = "f432282eb5";  //bugly id
        public static final String WX_APP_ID = "wx4a31dea55c39e742";  //微信支付App_id
        public static final String WX_APP_KEY = "09522093ffbb3f0628262fecab496ef9";  //微信支付App_secret
        public static final String UM_APP_KEY = "5ea7f68cdbc2ec0782da9483"; //友盟APP_KEY

        public static final String beta_share = "https://testreg.ouzhuoya.com/abc/ozy/front/card.html?d=";
        public static final String product_share = "https://ozyreg.ouzhuoya.com/abc/ozy/front/card.html?d=";
        public static final String product_share1 = "https://ozyadmin.ouzhuoya.com/abc/ozy/front/download.html";
        public static final String SHARL = BuildConfig.isBeta ? beta_share : product_share1;

        //为替换正确的code
        public static final String UM_MESSAGE_SECRET = "4384782900274b0bd3bead062813f1f2"; //友盟APP_SECRET
        public static final String QQ_APP_ID = "101876321";   //QQ  App_id
        public static final String QQ_APP_KEY = "9796378dffab24c320f6a9a6730d2675";  //QQ APP_KEY
    }

    /**
     * sp缓存key
     */
    public static class SPName {
        //国际化语言
        public static final String LANGUAGE = "language";
        public static final String IS_LOGIN = "is_login";
        public static final String IS_TIP = "is_tip";
        public static final String SESSION_ID = "session_id";
        public static final String USERNAME = "username";
        public static final String USER = "phone";
        public static final String USDTBYCNY = "usdtbycny";
        public static final String SHARE_URL = "share_url";
        public static final String COUNTRYCODE = "countryCode";
        public static final String UNAME = "uname";
        public static final String GAMECODE = "gameCode";

        public static final String QINIU_TOKEN = "qiniuToken";
        public static final String USERAVATAR = "useravatar";
        public static final String TOKEN_ID = "tokenid";

        public static final String RECOMMEND = "RECOMMEND";
    }

    /*********** PreferenceData name ****************/
    public static class PREE {
        public static String USERNAME = "username";
        public static String NICKNAME = "nickname";
        public static String TOKEN_ID = "token_id";
        public static String SESSION_ID = "session";
        public static String IS_PAY_PWD = "is_pay_pwd";
        public static String IS_VIP = "is_vip";
        public static String IS_FIRST = "is_First";  //是否第一次启动
        public static String ACCOUNT_TYPE = "accountType";  //账号类型

        public static String USERSIG = "usersig";
        public static String UID = "uid";
    }

    public static int RECHARGE_SUCCESS = 301;   //充值成功

    /**
     * eventBus code
     */
    public static class EventCode {
        //刷新余额，qc明细列表
        public static final String REFRESH_DETAIL_LIST = "REFRESH_DETAIL_LIST";
        public static final int WX_PAY_SUCCESS = 250;   //微信支付成功
        public static final int ALIPAY_PAY_SUCCESS = 251;  //支付宝支付成功
        public static final int RECHARGE_SUCCESS = 301;   //充值成功
        public static final int POST_DYNAMICS = 305;     //发布动态成功
        public static final int ADDERESS_DB_READ_SUCCESS = 312;   //地址数据库读取成功
        public static final int LIKE_DYNAMICS = 315;     //动态详情界面点赞成功发送事件
        public static final int DELETE_DYNAMICS = 316;     //删除动态
        public static final int DELETE_ADDRESS = 317;     //删除地址
        public static final int DELETE_DEFAULT_ADDRESS = 318;     //删除默认地址
        public static final int CHANGE_DEFAULT_ADDRESS = 319;     //更改默认地址
        public static final int EDIT_ADDRESS = 320;     //更改地址
        public static final int QUERY_ORDER_GID = 321;     //获取在线定位套餐属性
        public static final int REQUEST_BOOK_HOME = 322;     //获取预定到家
        public static final int REQUEST_MY_BOOK = 323;     //获取我的预定
        public static final int JUMP_PAY_PWD = 324;     //设置支付密码
        public static final int LOGIN_SUCCESS = 100;  //登录成功
        public static final int REFRESH_CAR = 400;  //刷新购物车
        public static final int REFRESH_MY_ORDER = 401;  //刷新我的订单
        public static final int SCHEDULED_ORDER_SUCCESS = 402;   //定时债送
        public static final int REPLY_DYNAMICS = 403;   //动态回复

        public static final int UPDATE_OB_LIST = 404;   //刷新我的欧花列表

        public static final int OB_SERACH_BACK = 500; //欧花搜索

        public static final int OB_SHOP_BACK1 = 501; //
        public static final int OB_SHOP_BACK2 = 502; //
        public static final int OB_SHOP_BACK3 = 503; //

    }

    /**
     * 接口请求交易码
     */
    public static class TransCode {
        //国际化
        public static String TransCode00000 = "00000";
        //发送短信  业务类型(R-注册，P-找回密码,S-提现，T-转账 U-修改密码
        public static String TransCode10001 = "10001";
        //注册
        public static String TransCode10002 = "10002";
        //忘记密码
        public static String TransCode10003 = "10003";
        //登陆
        public static String TransCode10004 = "10004";
        //首页
        public static String TransCode10005 = "10005";
        //公告消息
        public static String TransCode10006 = "10006";
        //公告消息详情
        public static String TransCode10007 = "10007";

        public static String TransCode10008 = "10008";
        //解除绑定
        public static String TransCode10009 = "10009";
        //转账
        public static String TransCode10010 = "10010";
        //qc明细
        public static String TransCode10011 = "10011";
        //存储明细
        public static String TransCode10012 = "10012";

        //明细记录
        public static String TransCode10013 = "10013";
        public static String TransCode10014 = "10014";
        //提币信息
        public static String TransCode10015 = "10015";
        //提币
        public static String TransCode10016 = "10016";
        //提币记录
        // public static String TransCode10017 = "10017";
        //我的
        public static String TransCode10018 = "10018";
        //账号管理
        public static String TransCode10019 = "10019";

        //切换账户
        public static String TransCode10020 = "10020";
        //修改密码
        public static String TransCode10021 = "10021";
        //转账
        public static String TransCode10022 = "10022";
        //我的邀请
        public static String TransCode10023 = "10023";

        //邀请二维码
        public static String TransCode10024 = "10024";
        public static String TransCode10025 = "10025";
        //删除收货地址
        public static String TransCode10029 = "10029";
        //锁仓赎回
        public static String TransCode10027 = "10027";


        //锁仓记录
        public static String TransCode10026 = "10026";

        //usdt明细
        public static String TransCode10017 = "10017";
        // 收货地址列表
        public static String TransCode10030 = "10030";
        //角色切换

        //我的分享
        public static String TransCode10032 = "10032";
        //我的订单
        public static String TransCode10033 = "10033";
        //订单详情
        public static String TransCode10034 = "10034";
        //兑换
        public static String TransCode10028 = "10028";

        //上传头像
        public static String TransCode10031 = "10031";
        //资产
        public static String TransCode10038 = "10038";
        //提币配置信息
        public static String TransCode10039 = "10039";
        //绑定提币地址

        public static String TransCode10040 = "10040";
        //提币记录
        public static String TransCode10042 = "10042";
        public static String TransCode10043 = "10043";
        public static String TransCode10048 = "10048";
        public static String TransCode10049 = "10049";
        public static String TransCode10050 = "10050";
        public static String TransCode10060 = "10060";
        public static String TransCode10062 = "10062";
        public static String TransCode10063 = "10063";
        public static String TransCode10066 = "10066";
        //提币
        public static String TransCode10041 = "10041";
        //版本更新
        public static String TransCode10044 = "10044";
        //取消订单
        public static String TransCode10105 = "10105";
        //游戏code
        public static String TransCode10045 = "10045";
        //根据邀请码查询用户名
        public static String TransCode10046 = "10046";
        public static String TransCode10051 = "10051";
        public static String TransCode10309 = "10309";
        public static String TransCode10052 = "10052";
        public static String TransCode10053 = "10053";
        public static String TransCode10310 = "10310";
        public static String TransCode10311 = "10311";
        public static String TransCode10054 = "10054";
        public static String TransCode10305 = "10305";
        public static String TransCode10306 = "10306";
        public static String TransCode10312 = "10312";
        public static String TransCode10055 = "10055";
        public static String TransCode10307 = "10307";
        public static String TransCode10313 = "10313";
        public static String TransCode10314 = "10314";
        public static String TransCode10056 = "10056";
        public static String TransCode10308 = "10308";
        public static String TransCode10057 = "10057";
        public static String TransCode10058 = "10058";
        public static String TransCode10059 = "10059";
        public static String TransCode10061 = "10061";
        public static String TransCode10064 = "10064";
        public static String TransCode10065 = "10065";
        public static String TransCode10067 = "10067";
        public static String TransCode10068 = "10068";
        public static String TransCode10069 = "10069";
        public static String TransCode10070 = "10070";
        public static String TransCode10071 = "10071";
        public static String TransCode10074 = "10074";
        public static String TransCode10075 = "10075";
        public static String TransCode10076 = "10076";
        public static String TransCode10078 = "10078";
        public static String TransCode10079 = "10079";
        public static String TransCode10080 = "10080";
        public static String TransCode10081 = "10081";
        public static String TransCode10082 = "10082";
        public static String TransCode10083 = "10083";
        public static String TransCode10084 = "10084";
        public static String TransCode10085 = "10085";
        public static String TransCode10086 = "10086";
        public static String TransCode10087 = "10087";
        public static String TransCode10088 = "10088";
        public static String TransCode10089 = "10089";
        public static String TransCode10090 = "10090";
        public static String TransCode10091 = "10091";
        public static String TransCode10092 = "10092";
        public static String TransCode10093 = "10093";
        public static String TransCode10094 = "10094";
        public static String TransCode10095 = "10095";
        public static String TransCode10096 = "10096";
        public static String TransCode10097 = "10097";
        public static String TransCode10098 = "10098";
        public static String TransCode10099 = "10099";
        //商城首页
        public static String TransCode10111 = "10111";
        //商城详情
        public static String TransCode10113 = "10113";
        //搜索商城列表
        public static String TransCode10112 = "10112";
        //商品规格
        public static String TransCode10114 = "10114";
        //加入购物车
        public static String TransCode10115 = "10115";
        //商城列表
        public static String TransCode10122 = "10122";
        //商城二级列表
        public static String TransCode10121 = "10121";
        //提交订单
        public static String TransCode10116 = "10116";
        //提交积分订单
        public static String TransCode10205 = "10205";
        //支付
        public static String TransCode10117 = "10117";
        //订单付款
        public static String TransCode10118 = "10118";
        //购物车
        public static String TransCode10119 = "10119";
        //购物车操作
        public static String TransCode10120 = "10120";
        //确认收货
        public static String TransCode10036 = "10036";
        //取消订单
        public static String TransCode10037 = "10037";
        //查看物流
        public static String TransCode10035 = "10035";
        public static String TransCode10073 = "10073";
        //宅送快递查询
        public static String TransCode10100 = "10100";
        //c2c首页
        public static String TransCode10101 = "10101";
        //C2C卖出配置
        public static String TransCode10102 = "10102";
        //C2C交易记录
        public static String TransCode10104 = "10104";
        //C2C卖出
        public static String TransCode10103 = "10103";
        //查看订单
        public static String TransCode10106 = "10106";
        //付款
        public static String TransCode10109 = "10109";
        //付款
        public static String TransCode10107 = "10107";
        //申诉
        public static String TransCode10108 = "10108";
        //查看卖单关联的买单
        public static String TransCode10110 = "10110";
        //搜索配置词
        public static String TransCode10124 = "10124";
        //商品评价
        public static String TransCode10125 = "10125";
        //查询兑换券
        public static String TransCode10123 = "10123";
        //查询兑换券
        public static String TransCode10126 = "10126";
        //欧圈首页
        public static String TransCode10150 = "10150";
        public static String TransCode10151 = "10151";
        public static String TransCode10152 = "10152";
        public static String TransCode10153 = "10153";
        public static String TransCode10154 = "10154";
        public static String TransCode10155 = "10155";
        public static String TransCode10156 = "10156";
        public static String TransCode10157 = "10157";
        public static String TransCode10158 = "10158";
        public static String TransCode10159 = "10159";
        public static String TransCode10160 = "10160";
        public static String TransCode10161 = "10161";
        public static String TransCode10162 = "10162";
        public static String TransCode10163 = "10163";
        public static String TransCode10164 = "10164";
        public static String TransCode10200 = "10200";
        public static String TransCode10201 = "10200";
        public static String TransCode10202 = "10202";
        public static String TransCode10203 = "10203";
        public static String TransCode10300 = "10300";
        public static String TransCode10301 = "10301";
        public static String TransCode10302 = "10302";
        public static String TransCode10303 = "10303";
        public static String TransCode10304 = "10304";
        public static String TransCode10315 = "10315";
        public static String TransCode10316 = "10316";

        public static String TransCode10317 = "10317";
        public static String TransCode10318 = "10318";

        public static String TransCode10319 = "10319";

        public static String TransCode10320 = "10320"; //歐花商城
        public static String TransCode10204 = "10204"; //歐花商城一级分类

        public static String TransCode10321 = "10321";
        public static String TransCode10322 = "10322";

        public static String TransCode10206 = "10206";

        public static String TransCode10323 = "10323";
        public static String TransCode10324 = "10324";
        //首页加载更多
        public static String TransCode10327 = "10327";
        //订单详细
        public static String TransCode10328 = "10328";
        //物流查看
        public static String TransCode10329 = "10329";
        //查看消息
        public static String TransCode10331 = "10331";
        //查看未读消息
        public static String TransCode10332 = "10332";
        //注销
        public static String TransCode10333 = "10333";

        //购买会员
        public static String TransCode10401 = "10401";
        //我的奖励
        public static String TransCode10402 = "10402";
        //奖励明细-列表
        public static String TransCode10403 = "10403";
        //奖励明细-详情
        public static String TransCode10404 = "10404";

        //奖励提现-提现
        public static String TransCode10405 = "10405";

        //账号转赠
        public static String TransCode10406 = "10406";

        //兑换欧花
        public static String TransCode10407 = "10407";

        //推广用户列表
        public static String TransCode10408 = "10408";
        //推广用户详情
        public static String TransCode10409 = "10409";

        //手动报单
        public static String TransCode10410 = "10410";
        //资金明细
        public static String TransCode10411 = "10411";
        //礼包列表
        public static String TransCode10412 = "10412";

        //股权奖励列表
        public static String TransCode10413 = "10413";
        //是否已经购买会员
        public static String TransCode10414 = "10414";
    }
}
